<?php 
header("Content-Type: text/html;charset=utf-8");
$xml_array= simplexml_load_file('test.xml');
echo "姓名"."\t"."性别"."\t"."年龄"."</br>";
foreach($xml_array as $val){
	echo $val->name."-".$val->sex."-".$val->old."<br/>";
}